//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.meitianhui.convenitenbuy.util;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;

public class BtnMenuDialogResourceUtil {
    protected static Context mContext;

    public BtnMenuDialogResourceUtil() {
    }

    public static void setContext(Context context) {
        mContext = context;
    }

    public static Context getContext() {
        return mContext;
    }

    private static Resources getResources() {
        return mContext.getResources();
    }

    public static Drawable getDrawable(String resName) {
        Drawable drawable = null;
        Resources res = getResources();
        drawable = res.getDrawable(res.getIdentifier(resName, "drawable", mContext.getPackageName()));
        return drawable;
    }

    public static int getDrawableId(String resName) {
        Resources res = getResources();
        return res.getIdentifier(resName, "drawable", mContext.getPackageName());
    }

    public static int getLayout(String resName) {
        boolean layoutId = false;
        Resources res = getResources();
        int layoutId1 = res.getIdentifier(resName, "layout", mContext.getPackageName());
        return layoutId1;
    }

    public static String getString(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "string", mContext.getPackageName());
        return res.getString(strRes1);
    }

    public static int getStringId(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "string", mContext.getPackageName());
        return strRes1;
    }

    public static int getColor(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "color", mContext.getPackageName());
        return res.getColor(strRes1);
    }

    public static int getColorId(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "color", mContext.getPackageName());
        return strRes1;
    }

    public static float getDimension(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "dimen", mContext.getPackageName());
        return res.getDimension(strRes1);
    }

    public static int getDimensionId(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "dimen", mContext.getPackageName());
        return strRes1;
    }

    public static int getInteger(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "integer", mContext.getPackageName());
        return res.getInteger(strRes1);
    }

    public static int getIntegerId(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "integer", mContext.getPackageName());
        return strRes1;
    }

    public static int getStyles(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "style", mContext.getPackageName());
        return strRes1;
    }

    public static int getId(String resName) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, "id", mContext.getPackageName());
        return strRes1;
    }

    public static int getIdentifier(String resName, String resType) {
        boolean strRes = false;
        Resources res = getResources();
        int strRes1 = res.getIdentifier(resName, resType, mContext.getPackageName());
        return strRes1;
    }
}
